package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试结果业务对象 p_test_answer
 *
 * @author ruoyi
 * @date 2022-08-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("测试结果业务对象")
public class PTestAnswerBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 测试标题id
     */
    @ApiModelProperty(value = "测试标题id", required = true)
    @NotNull(message = "测试标题id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long topicId;

    /**
     * 最小分数
     */
    @ApiModelProperty(value = "最小分数", required = true)
    @NotNull(message = "最小分数不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal minScore;

    /**
     * 最大分数
     */
    @ApiModelProperty(value = "最大分数", required = true)
    @NotNull(message = "最大分数不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal maxScore;

    /**
     * 测试答案
     */
    @ApiModelProperty(value = "测试答案", required = true)
    @NotBlank(message = "测试答案不能为空", groups = {AddGroup.class, EditGroup.class})
    private String info;

    @ApiModelProperty(value = "分数")
    @NotBlank(message = "测试分数不能为空")
    private Double score;
}
